import config from "../../config";

export default {
    getAsideCategoryList: {
        url: `${config.API_PREFIX}/blog/getAsideCategoryList`,
        name: "获取侧边栏文章分类列表",
        get: () => {
            const categoryList = [
                {id: "one", name: "源码笔记", count: 30},
                {id: "one", name: "Curator", count: 5},
                {id: "one", name: "Hao", count: 4},
                {id: "one", name: "LeetCode", count: 7},
                {id: "one", name: "redisson", count: 11},
                {id: "one", name: "ELK", count: 8},
                {id: "one", name: "工作笔记", count: 14},
                {id: "one", name: "分布式锁", count: 5},
                {id: "one", name: "默认分类", count: 0},
                {id: "one", name: "IDEA", count: 5}
            ]
            return new Promise((resolve) => resolve(categoryList));
        }
    },
    getIndexCategoryList: {
        url: `${config.API_PREFIX}/blog/getIndexCategoryList`,
        name: "获取首页文章分类列表",
        get: () => {
            const categoryList = [
                {id: "one", name: "源码笔记", count: 30},
                {id: "one", name: "Curator", count: 5},
                {id: "one", name: "Hao", count: 4},
                {id: "one", name: "LeetCode", count: 7},
                {id: "one", name: "redisson", count: 11},
                {id: "one", name: "ELK", count: 8},
                {id: "one", name: "工作笔记", count: 14},
                {id: "one", name: "分布式锁", count: 5},
                {id: "one", name: "默认分类", count: 0},
                {id: "one", name: "IDEA", count: 5}
            ]
            return new Promise((resolve) => resolve(categoryList));
        }
    },
}